<?php
/**
 * Created by PhpStorm.
 * User: Zhanghaiqiang
 * Date: 2020-03-15
 * Time: 00:21
 */

namespace App\Core\Endpoints\CandyLab;


use Laravelladder\Core\Endpoints\BaseEndpoint;

class IndexLab extends BaseEndpoint
{

    /**
     * 子类需要实现的方法，包含了业务最核心的逻辑和调用流程，
     * 只能调用Repo，Service，Event 和Queue ，其他人通
     * 过查看Endpoint方法就能直接了解业务的核心逻辑
     *
     * @return mixed
     */
    public function dryRun()
    {
        $lab =
            [
                [
                    "labName"=>"基础迭代v1.3版本 2020/02/12",
                    "step"=>0,
                    "detail" => [
                        ["featureName"=>"1、订阅通知功能。","progress"=>"30%","showTitle"=>"调研中30%"],
                    ]
                ],

                [
                    "labName"=>"待确认功能 2020/02",
                    "step"=>-1,
                    "detail" => [
                        ["featureName"=>"1、支持动图和微信自拍表情","progress"=>"20%","showTitle"=>"评估中"],
                        ["featureName"=>"2、图片上传支持从聊天记录导入","progress"=>"20%","showTitle"=>"评估中"],
                    ]
                ],
                [
                    "labName"=>"基础迭代v1.2版本 2020/02/03",
                    "step"=>3,
                    "detail" => [
                        ["featureName"=>"1、糖果图集支持时光机穿越，快速定位日期。","progress"=>"100%","showTitle"=>"开发进度100%"],
                        ["featureName"=>"2、追加糖果实验室频道，展示迭代进度；","progress"=>"100%","showTitle"=>"开发进度100%"],
                        ["featureName"=>"3、降低流量成本，视频储存到小程序体验云空间；","progress"=>"100%","showTitle"=>"开发进度100%"],
                    ]
                ],
                [
                    "labName"=>"基础迭代v1.1版本",
                    "step"=>3,
                    "detail" => [
                        ["featureName"=>"1、糖果视频和技能解锁频道合并，统一为糖果故事；","progress"=>"100%","showTitle"=>"开发进度100%"],
                        ["featureName"=>"2、糖果故事支持图文，视频，图集轮播三种形式。","progress"=>"100%","showTitle"=>"开发进度100%"],
                    ]
                ],

            ];
        $stepName = [
            ["name"=>"需求确认"],["name"=>"功能开发"],["name"=>"测试通过"],["name"=>"发布上线"]
        ];
        return ["lab"=>$lab,"step"=>$stepName];
    }
}